package com.cheyunkeji.er.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import java.util.ArrayList;


/**
 * Created by Michael on 2017/2/16 15:38.
 */

public  class MyBaseAdapter<T> extends BaseAdapter {

    protected ArrayList<T> dataList ;
    protected Context context ;

    public MyBaseAdapter(ArrayList<T> dataList,Context context){

        this.dataList = dataList;
        this.context = context;
    }

    @Override
    public int getCount() {
        return dataList.size();
    }

    @Override
    public T getItem(int position) {
        return dataList.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position ;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        return null;
    }
}
